﻿<UserControl
    x:Class="SilverErp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600" xmlns:dxmnu="http://schemas.devexpress.com/winfx/2008/xaml/agmenu" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.115*"/>
            <RowDefinition Height="0.885*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.218*" />
            <ColumnDefinition Width="0.782*" />
        </Grid.ColumnDefinitions>
        <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" Margin="0" Grid.Row="1" Grid.Column="1" BorderThickness="0">
            <sdk:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
        		Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Padding="0" Margin="0,22,0,0" Height="Auto">
                <sdk:Frame.UriMapper>
                    <sdk:UriMapper>
                        <sdk:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                        <sdk:UriMapping Uri="/Liste/{tip}" MappedUri="/Views/Liste.xaml?ListeTipi={tip}"/>
                        <sdk:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                    </sdk:UriMapper>
                </sdk:Frame.UriMapper>
            </sdk:Frame>
        </Border>

        <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}" Grid.ColumnSpan="2" Height="Auto" Margin="0,0,0,27" VerticalAlignment="Stretch">

            <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
                <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">

                    <ContentControl Style="{StaticResource LogoIcon}"/>
                    <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" 
                               Text="Silver ERP"/>

                </StackPanel>
            </Border>

            <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
                <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

                    <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Home" TargetName="ContentFrame" Content="home"/>

                    <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

                    <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/About" TargetName="ContentFrame" Content="about"/>

                </StackPanel>
            </Border>

        </Grid>
        <dxmnu:AgMenu Height="Auto" HorizontalAlignment="Stretch" Margin="1,0" Name="agMenu1" VerticalAlignment="Bottom" Width="Auto" DisplayMemberPath="" AllowSelectItems="False" Grid.ColumnSpan="2">
            <dxmnu:AgMenuItem  ClosePopupOnClick="True" Header="Dosya">
                <dxmnu:AgMenuItem ClosePopupOnClick="True" Header="Çıkış" />
                <dxmnu:AgMenuItem ClosePopupOnClick="True" Header="Deneme" />
            </dxmnu:AgMenuItem>
        </dxmnu:AgMenu>
        <Border Style="{StaticResource ContentBorderStyle}" Margin="0" Grid.Row="1" BorderThickness="0">
        	<Border BorderBrush="#FFE7E7E7" BorderThickness="2" Margin="2,62,5,5" CornerRadius="5">
        		<sdk:TreeView Margin="1" BorderBrush="{x:Null}" x:Name="trvMenu" BorderThickness="1" RenderTransformOrigin="0.5,0.5"/>
        	</Border>
        </Border>
        <Border BorderBrush="#FFE5E5E5" BorderThickness="2" Margin="2,22,5,0" Grid.Row="1" Height="35" VerticalAlignment="Top" CornerRadius="5">
        	<TextBox x:Name="txtFilter" Margin="1" TextWrapping="Wrap" BorderBrush="{x:Null}" TextAlignment="Center" FontSize="13.333"/>
        </Border>
    </Grid>

</UserControl>